import request from '@/utils/request'

// 查询会议管理列表
export function listMeetingMinutes(query) {
  return request({
    url: '/conference/manage/recordList',
    method: 'get',
    params: query
  })
}

// 查询会议管理详细
export function getMeetingMinutes(mrmId) {
  return request({
    url: '/record/meetingMinutes/' + mrmId,
    method: 'get'
  })
}

// 新增会议管理
export function addMeetingMinutes(data) {
  return request({
    url: '/record/meetingMinutes',
    method: 'post',
    data: data
  })
}

// 修改会议管理
export function updateMeetingMinutes(data) {
  return request({
    url: '/record/meetingMinutes',
    method: 'put',
    data: data
  })
}

// 删除会议管理
export function delMeetingMinutes(mrmId) {
  return request({
    url: '/conference/manage/record/' + mrmId,
    method: 'delete'
  })
}

// 查询部门管理列表
export function listDepartment() {
  return request({
    url: '/personnel/department/list',
    method: 'get',
  })
}

// 查询员工管理列表
export function listEmployee() {
  return request({
    url: '/personnel/employee/list',
    method: 'get',
  })
}

// 回滾方法
export function rollback() {
  return request({
    url: '/conference/manage/',
    method: 'delete'
  })
}
